/*
 * #%L
 * SwiftUICommonUtilities
 * $Id:$
 * $HeadURL:$
 * %%
 * Copyright (C) 2011 - 2012 Linkwithweb
 * %%
 * This program is free software: you can redistribute it and/or modify
 * it under the terms of the GNU General Public License as
 * published by the Free Software Foundation, either version 3 of the 
 * License, or (at your option) any later version.
 * 
 * This program is distributed in the hope that it will be useful,
 * but WITHOUT ANY WARRANTY; without even the implied warranty of
 * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
 * GNU General Public License for more details.
 * 
 * You should have received a copy of the GNU General Public 
 * License along with this program.  If not, see
 * <http://www.gnu.org/licenses/gpl-3.0.html>.
 * #L%
 */
package com.linkwithweb.products.swiftui.constants;

public enum ColorCodes {

    c1("#EEEEEE"), c2("#FFFF88"), c3("#FF7400"), c4("#CDEB8B"), c5("#6BBA70"), c6(
	    "#006E2E"), c7("#C3D9FF"), c8("#4096EE"), c9("#356AA0"), c10(
	    "#FF0096"), c11("#B02B2C"), c12("#000000");

    private String color = "";

    ColorCodes(String color) {
	this.color = color;
    }

    public String getColor() {
	return this.color;
    }
    
    public String getCode(String color) {
	for(ColorCodes code : ColorCodes.values()) {
	    if(code.getColor().equalsIgnoreCase(color))
		return code.name();
	}
	return null;
    }
}